package org.jeecg.modules.controller.business;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.dto.station.*;
import org.jeecg.modules.service.StationService;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;

/**
 * @author Administrator
 * @Description: 基站功能模块业务队列
 * @Date 2021/06/04
 * @Created by wk
 */
@Api(tags = "基站功能模块业务队列")
@RestController
@RequestMapping("/business/station")
public class StationController {

    @Resource
    private StationService stationService;

    @ApiOperation(value = "下发车桩状态修改", notes = "下发车桩状态修改")
    @GetMapping(value = "/pileRegister")
    public Result<?> pileRegister(StationRegisterRsp stationRegisterRsp) {
        return stationService.pileRegister(stationRegisterRsp);
    }

    @ApiOperation(value = "滚屏公告", notes = "滚屏公告")
    @GetMapping(value = "/notice")
    public Result<?> notice(NoticeReq noticeReq) {
        return stationService.notice();
    }

    @ApiOperation(value = "全注册网点管理员卡号列表更新", notes = "全注册网点管理员卡号列表更新")
    @GetMapping(value = "/manageCardListByStation")
    public Result<?> manageCardListByStation( ) {
        return stationService.manageCardListByStation();
    }

    @ApiOperation(value = "管理员卡号列表更新", notes = "管理员卡号列表更新")
    @GetMapping(value = "/manageCardList")
    public Result<?> manageCardList(ManageCardListReq manageCardListReq) {
        return stationService.manageCardList(manageCardListReq);
    }
}
